﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Handrise.CDCable.Business
{
    /// <summary>
    /// 巡视设备
    /// </summary>
    [Serializable]
    [EntityMapping(ListName = "mtdPatrolseqpdetails", EntityName = "MtdPatrolseqpdetailData", DataType = 1)]
    public class PlanDevice
    {
        /// <summary>
        /// 巡视设备ID
        /// </summary>
        [EntityMapping(ColumnName = "fid")]
        public string PlanDeviceID { get; set; }

        /// <summary>
        /// 对应设备ID
        /// </summary>
        public string DeviceID { get; set; }

        /// <summary>
        /// 对应计划ID
        /// </summary>
        [EntityMapping(ColumnName = "fpatrolsplanid")]
        public string PlanID { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "DeviceName")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public string DeviceType { get; set; }

        /// <summary>
        /// 设备编码
        /// </summary>
        [EntityMapping(ColumnName = "fdevsequence")]
        public string DeviceCode { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public double? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public double? Latitude { get; set; }

        /// <summary>
        /// 到位确认状态： 未确认、已确认
        /// </summary>
        public string ConfirmState { get; set; }

        /// <summary>
        /// 所属用户
        /// </summary>
        public string UserName { get; set; }
    }
}
